# $Id$
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=link-grammar
pkgver=5.3.15
pkgrel=1
pkgdesc="A Grammar Checking library"
arch=('i686' 'x86_64')
url="http://www.abisource.com/downloads/link-grammar/"
license=('BSD')
depends=('aspell' 'sqlite')
options=('!makeflags')
source=("http://www.abisource.com/downloads/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
md5sums=('446078337753bfb1d39f80281acee70d')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/link-grammar/LICENSE"
}
